	<div style="display: %%GLOBAL_HideAdvancedSearch%%">
	<form action="%%GLOBAL_FormAction%%#results" method="post" onsubmit="return CheckAdvancedSearchForm()">
		<h2>%%LNG_hpAdvancedSearch%%</h2>
		<table border="0" width="100%" cellpadding="3" cellspacing="3" class="SimpleTable">
			<tr>
				<td colspan="2"></td>
			</tr>
			<tr>
				<td>&nbsp;&nbsp;%%LNG_searchQueryLabel%%:</td>
				<td><input name="Query" id="AQuery" value="%%GLOBAL_Query%%" style="width: 260px;" /></td>
			</tr>
			<tr>
				<td>&nbsp;&nbsp;%%LNG_searchCategoriesLabel%%:</td>
				<td>
					<select name="Categories[]" id="Categories" multiple="multiple" size="5" style="width: 260px;">
						<option value="0" %%GLOBAL_AllSel%%>%%LNG_searchAllCategories%%</option>
						%%GLOBAL_SearchCategoryOptions%%
					</select>
				</td>
			</tr>
			<tr>
				<td>&nbsp;&nbsp;%%LNG_rated%%:</td>
				<td>
					<input type="hidden" name="ratedOp" value=">=" />
					<select name="rated" style="width: 260px;">
						%%GLOBAL_ratedOptions%%
					</select>
				</td>
			</tr>
			%%Panel.SearchCustomFields%%
			<tr>
				<td></td>
				<td><input type="submit" id="SearchButton" value="%%LNG_hpSearch%%" class="button" /></td>
			</tr>
			<tr style="display: %%GLOBAL_HideSearchDivider%%">
				<td colspan="2">
					<div class="HorizontalRule"></div>
				</td>
			</tr>
		</table>
	</form>
	<hr class="Seperator" noshade="noshade" size="1" style="display: %%GLOBAL_HideSeperator%%" />
	</div>

	<!-- Start Search Results -->
	<a name="results"></a>
	<div style="display: %%GLOBAL_HideSearchResults%%">
	<h3>%%GLOBAL_ResultHeading%%</h3>
	<em>%%GLOBAL_SearchResultIntro%%&nbsp;</em>
				%%GLOBAL_Nav%%
				%%GLOBAL_SearchGrid%%
				%%GLOBAL_Nav%%
	</div>

	<!-- End Search Results -->

	<script type="text/javascript" language="javascript">
		<!--

		function CheckAdvancedSearchForm()
		{
			var qVal = document.getElementById("AQuery").value;

			if ((qVal == "") && (!validateCustomFields())) {
				//alert("%%LNG_hpPleaseEnterSearchTermCF%%");
				//document.getElementById("AQuery").focus();
				//return false;
			}

			return true;
		}

		function validateCustomFields() {
			return true;
		}

		-->
	</script>
